package cc.lj.internal.coupons.interfaces.dto.command;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.Future;
import java.time.LocalDate;

@Data
@NoArgsConstructor
@ApiModel("封顶额活动修改入参COMMAND")
public class MartCapUpdateCommand {

    @ApiModelProperty(value = "主键")
    @DecimalMin("1")
    private Integer id;

    @ApiModelProperty(value = "开始日期")
    @Future
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd")
    private LocalDate startDate;

    @ApiModelProperty(value = "结束日期")
    @Future
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd")
    private LocalDate endDate;


}
